import { defineStore } from 'pinia';
import { ref } from 'vue';

export default defineStore(
    'users',
    () => {
        //声明用户信息的state
        let userInfo = ref({});
        let flag = ref(false);

        return { userInfo, flag };
    },
    {
        //持久存储
        persist: true,
    }
);
